//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.mega.ycy.common.item;

import mods.flammpfeil.slashblade.tileentity.DummyTileEntity;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.ForgeHooksClient;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

public class ItemLoader {
    public static final Item yiSlashBlade = new ItemAYiSlashBlade();

    public ItemLoader() {
    }

    @SubscribeEvent
    public void registerItem(Register<Item> event) {
        event.getRegistry().register(yiSlashBlade.setRegistryName("yiciyuan", "yicyuan"));
    }

    @SubscribeEvent
    public void registerModel(ModelRegistryEvent event) {
        ModelLoader.setCustomModelResourceLocation(yiSlashBlade, 0, new ModelResourceLocation("flammpfeil.slashblade:model/named/blade.obj"));
        ForgeHooksClient.registerTESRItemStack(yiSlashBlade, 0, DummyTileEntity.class);
    }
}
